local dap_install = require("dap-install")

dap_install.config(
    "ccppr_vsc",
    {
        adapters = {
            id = "cppdbg"
        }
    }
)

--dap_install.config(
    --"",
    --{
        --adapters = {
            --type = 
            --command = 
        --}
        --configurations = {
            --{name = }
        --}
    --}
--)
--local M = {}

--function M.setup(_)
    --local dap = require('dap')
    --dap.adapters.cppdbg = {
        --id = 'cppdbg',
        --type = 'executable',
        --command = '/home/gotpl/softs/vscode/cpptools-linux/extension/debugAdapters/bin/OpenDebugAD7',
    --}
    --dap.configurations.cpp = {
        --{
            --name = "Launch file",
            --type = "cppdbg",
            --request = "launch",
            --program = function()
                --return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
            --end,
            --cwd = '${workspaceFolder}',
            --stopAtEntry = true,
            --setupCommands = {  
                --{ 
                    --text = '-enable-pretty-printing',
                    --description =  'enable pretty printing',
                    --ignoreFailures = false 
                --},
            --},

        --},
        --{
            --name = 'Attach to gdbserver :1234',
            --type = 'cppdbg',
            --request = 'launch',
            --MIMode = 'gdb',
            --miDebuggerServerAddress = 'localhost:1234',
            --miDebuggerPath = '/usr/bin/gdb',
            --cwd = '${workspaceFolder}',
            --program = function()
                --return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
            --end,
            --setupCommands = {  
                --{ 
                    --text = '-enable-pretty-printing',
                    --description =  'enable pretty printing',
                    --ignoreFailures = false 
                --},
            --},

        --},
    --}
--end

--return M
